package cn.livingCloud.entity.content;

import cn.livingCloud.utils.DateUtils;
import cn.livingCloud.utils.UuidGenerator;
import cn.livingCloud.wechat.protocol.resp.Article;

import java.io.Serializable;
import java.util.Date;

/**
 * 图文消息-详细图文(多个)
 * Created by DingJie  on 2015/12/22.
 */
public class ArticleReply extends Article implements Serializable {

    private String uuid = UuidGenerator.generate();

    private String image_text_reply_id;

    private int rank;

    //创建时间
    //yyyy-MM-dd HH:mm:ss
    private Date createTime = DateUtils.now();

    public ArticleReply() {
    }

    public ArticleReply(ImageTextReply imageTextReply, int rank) {
        super();
        this.image_text_reply_id = imageTextReply.getUuid();
        this.rank = rank;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getImage_text_reply_id() {
        return image_text_reply_id;
    }

    public void setImage_text_reply_id(String image_text_reply_id) {
        this.image_text_reply_id = image_text_reply_id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getRank() {
        return rank;
    }

    public ArticleReply setRank(int rank) {
        this.rank = rank;
        return this;
    }
}
